| Miles Sound System SDK 7.2a |
Q: | How do I loop a track off a CD? |
A: | To loop a CD track, you have to do a little more work, because you can't instruct the hardware itself to loop. To handle this, follow these steps: 1) Open the redbook device with AIL_redbook_open. 2) Get the start and stop points with AIL_redbook_track_info. 3) Call AIL_redbook_play to begin playing the track. 4) Subtract the starting and stopping points to calculate the length of the track, and then add a second or two of slop time. 5) Create a timer (system or Miles) for the length of time of the song. 6) Restart the CD track when the timer expires (and reset your timer for the next loop). |
Previous Topic (How do I play a track off a CD?)
Group:
FAQs and How Tos
Related Functions:
AIL_redbook_open, AIL_redbook_play, AIL_redbook_track_info
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.